<ui:composition  xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:p="http://primefaces.org/ui" >

    <h:form>
        <p:menu style="width:200px;" >  
            <p:submenu label="Menu">  
            </p:submenu>
                <p:menuitem value="Orçamento" actionListener="#{managerImovel.redirect('orcamento.xhtml')}" 
                            action="#{managerOrcamento.init()}"  update="@all" icon="ui-icon-plusthick"/>  
            <p:submenu label="Protocolo">  
                <p:menuitem value="Cadastrar" actionListener="#{managerImovel.redirect('protocolo.xhtml')}"
                            action="#{managerProtocolo.init()}"  update="@form" icon="ui-icon-plusthick"/>  
                <p:menuitem value="Pesquisar" actionListener="#{managerCorSelo.redirect('buscarProtocolo.xhtml')}" 
                            action="#{managerConsultarProtocolo.init()}" icon="ui-icon-search"/> 
            </p:submenu>
            <p:submenu label="Selos">  
                <p:menuitem value="Pendentes" actionListener="#{managerImovel.redirect('protocoloSelo.xhtml')}" 
                            icon="ui-icon-alert"/> 
                <p:menuitem value="Finalizados" rendered="false" actionListener="#{managerCorSelo.redirect('indexAto.xhtml')}"  
                            update="@form" icon="ui-icon-circle-check"/>  
            </p:submenu>  
            <p:submenu label="Trâmite">  
                    <p:menuitem value="Trâmitar Protocolo" 
                                actionListener="#{managerImovel.redirect('tramitar.xhtml')}" 
                                icon="ui-icon-shuffle"/>
                    <p:menuitem value="Receber Protocolo" 
                                actionListener="#{managerImovel.redirect('receberProtocolo.xhtml')}" 
                                icon="ui-icon-check"/>
                    <p:menuitem value="Relatório Protocolo" 
                                actionListener="#{managerImovel.redirect('tramiteRelatorio.xhtml')}" 
                                icon="ui-icon-document"/>
            </p:submenu>
            <p:submenu label="Caixa">  
                <p:menuitem value="Caixa" actionListener="#{managerCorSelo.redirect('caixa.xhtml')}"
                            update="@form" icon="ui-icon-document"/>  
                <p:menuitem value="Pagamentos" actionListener="#{managerCorSelo.redirect('indexPagamento.xhtml')}"
                             icon="ui-icon-script"/> 
                <p:menuitem value="Lançamentos" actionListener="#{managerCorSelo.redirect('indexLancamento.xhtml')}" 
                            update="@form" icon="ui-icon-locked"/>  
            </p:submenu>  
            <p:submenu label="Relatórios">  
                <p:menuitem value="Movimentação" rendered="false" actionListener="#{managerImovel.redirect('emolumentotj.xhtml')}" 
                            update="@form" icon="ui-icon-refresh"/>  
                <p:menuitem value="Protocolos" actionListener="#{managerImovel.redirect('relatorioProtocolo.xhtml')}" 
                            icon="ui-icon-extlink"/> 
                <p:menuitem value="Clientes" actionListener="#{managerCorSelo.redirect('relatorioPessoaProtocolo.xhtml')}" 
                            update="@form" icon="ui-icon-person"/>  
                <p:menuitem value="Selos" actionListener="#{managerCorSelo.redirect('relatorioSeloProtocolo.xhtml')}" 
                            update="@form" icon="ui-icon-clipboard"/>  
            </p:submenu>
        </p:menu>  

    </h:form>

</ui:composition>
